<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2012.03.17.
   家居商家记录记录控制器($小牛New $2014.07.28)*/

!defined('Q_PATH') && exit;

class JiajucreditlogController extends AController{

	public function init__(){
		$this->_arrNotMethod=array(
			'save_previewstatus',
			'save_preview',
			'view_preview',
			'foreverdelete',
			'foreverdelete_deep',
			'input_change_ajax',
			'input_change_unique',
			'forbid',
			'closeitem',
			'openitem',
			'resume',
			'clear_recycle',
			'save_sort',
			'insert',
			'add',
			'edit',
			'update'
		);
		
		parent::init__();
	}
	
	public function filter_(&$arrMap){
		$arrMap['A.jiajucreditlog_tips']=array('like',"%".Q::G('jiajucreditlog_tips')."%");
		$arrMap['A.jiajucreditlog_module']=array('like',"%".Q::G('jiajucreditlog_module')."%");
		$arrMap['A.jiajucompany_id']=$GLOBALS['_company_']['jiajucompany_id'];
		if(Q::G('jiajucreditlog_itemid')){
			$arrMap['A.jiajucreditlog_itemid']=intval(Q::G('jiajucreditlog_itemid'));
		}

		// 添加时间
		$this->getTime_('A.jiajucreditlog_itemtime',$arrMap);

		$_GET['order_']=$_REQUEST['order_']='jiajucreditlog_itemtime';
	}

}
